Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(preload): experimental LD_PRELOAD env hook #28

Closed
wants to merge 12 commits into from

Conversation

basti1302
Copy link
Member

No description provided.

@basti1302 basti1302 force-pushed the experimental/ld-preload branch 4 times, most recently from 3765925 to 56b0f7b Compare June 24, 2024 10:42
Copy link

sonarcloud bot commented Jun 24, 2024

@basti1302 basti1302 marked this pull request as draft June 25, 2024 09:01
@basti1302 basti1302 force-pushed the main branch 3 times, most recently from ffa895f to 4f73408 Compare June 26, 2024 15:05
Also, convert all shell scripts to POSIX-compliant sh scripts and apply
most shellcheck suggestions.
The previous build & test setup was invalid: So far we have built
_different_ libdash0envhook.so binaries for the LD_PRELOAD hook per
libc flavor. With this, the binary works in the target system.

But actually this approach is not not possible in the real world. We
can set one binary as LD_PRELOAD when instrumenting a container and we
do not know which libc flavor it is ahead of time. Thus we ultimately
need to build a libdash0envhook.so binary that works independently of
which libc flavor the target system uses.

This commit only fixes the test setup. The binary does not yet support
both libc flavors. This will be handled in a follow up commit.

[skip ci]
Copy link

sonarcloud bot commented Oct 18, 2024

@basti1302
Copy link
Member Author

Closing in favor of #155

@basti1302 basti1302 closed this Oct 23, 2024
@basti1302 basti1302 deleted the experimental/ld-preload branch October 23, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant